package com.joysuch.wwyt.openapi.controllers.controllerV1.req;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * @author: JamesZY
 * @date: 2021/8/23
 * @description:分页查询
 */
@Data
public class ApiV1PagePropertyReq implements Serializable {

    private static final long serialVersionUID = 8877534217824308475L;


    /**
     *第几页
     */
    @Min(value = 1,message = "页数最小是1")
    @NotNull(message = "页数不能是空")
    private Integer pageNumber;

    /**
     *每页显示多少条数据
     */
    @Min(value = 15,message = "条数最小是15")
    @Max(value = 1000,message = "条数最大是1000")
    @NotNull(message = "条数不能是空")
    private Integer pageSize;

}
